{template 'common/header'}
<div>
<div class="panel panel-info">
	<div class="panel-heading" style="text-align: center;">用户管理</div>
	<div class="panel-body">
		<div class="row">
			<form action="<?php echo $this->createWebUrl('Usersearch');?>" method="post" id="keyform">
			<div class="col-xs-6 col-sm-4">
				<input type="text" name="key" placeholder="用户姓名"  class="form-control" style="display: inline-block;" /></div>
			</form>
			<div class="col-xs-6 col-sm-4">
				<button class="btn btn-default" style="display: inline-block;" onclick="search()" form="keyform">搜索</button>  
			<div class="clearfix visible-xs-block"></div>
			<div class="col-xs-6 col-sm-4"> </div>
		</div> 
	</div>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th style="width: 100px;">用户姓名</th> 
			<th style="width: 120px;">电话号码</th>
			<th style="width: 100px;">用户地址</th>
		</tr>
	</thead>
	<tbody>
		{loop $result $index $item}
		<tr>
			<td>{$item['name']}</td>
			<td>{$item['phonenumber']} </td>
			<td>{$item['address']} </td>
		</tr>
		{/loop}
		<tr>
			<td colspan="3" align="center">{$page}</td>
		</tr>
	</tbody>
</table>
</div>
<script type="text/javascript">
	function search(){
		window.location.href="<?php  echo $this->createWebUrl('Usersearch');?>";
	}
</script>
{template 'common/footer'}
